<?php

// +----------------------------------------------------
// | Name: 星空框架  店铺验证规则
// +----------------------------------------------------
// | Version: V5.0
// +----------------------------------------------------
// | Author: xkyinzhe <zhonghuaxinxing@sina.cn>
// +----------------------------------------------------
// | Time： 2021-05-07 13：01
// +----------------------------------------------------
declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

/**
 * @xk 店铺验证规则
 */
class Store extends Validate
{
    protected $rule = [
    'store_name' => 'require|unique:store,delete_time'
  ];
    protected $message = [
      'category_name' => '店铺主营类目为空'
  ];
  protected $scene = [
    'create' => ['store_name'],
    'edit' => ['store_name'],
  ];
}
